a=input("请输入：")
b={}
c=0
for i in a:
    t=b.get(i,0)
    b[i]=t+1
    if b[i]>c:
        c=b[i]
print(b)
for k,v in b.items():
    if v==c:
        print(k)